package com.core.zyyz.amc.modules.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.core.common.core.controller.BaseController;
import com.core.zyyz.amc.modules.domain.AmcSysCurrencyCodeB;
import com.core.zyyz.amc.modules.service.AmcSysCurrencyCodeBService;
import com.core.common.core.page.TableDataInfo;

/**
 * 币别代码Controller
 *
 * @author lfs
 * @date 2024-12-05
 */
@RestController
@RequestMapping("/amc/currency")
public class AmcSysCurrencyCodeBController extends BaseController
{
    @Autowired
    private AmcSysCurrencyCodeBService amcSysCurrencyCodeBService;

    /**
     * 查询币别代码列表
     */
    @PreAuthorize("@ss.hasPermi('amc:currency:list')")
    @GetMapping("/list")
    public TableDataInfo list(AmcSysCurrencyCodeB amcSysCurrencyCodeB)
    {
        startPage();
        List<AmcSysCurrencyCodeB> list = amcSysCurrencyCodeBService.selectAmcSysCurrencyCodeBList(amcSysCurrencyCodeB);
        return getDataTable(list);
    }


}
